import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home/Home'
import Good from '@/pages/good/Goods'
import Payrule from '@/pages/payrule/Payrule'
import Login from '@/pages/login/Login'
import Person from '@/pages/person/Person'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/goods',
      name: 'Goods',
      component: Good
    },
    {
      path: '/payrule',
      name: 'Payrule',
      component: Payrule
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/person',
      name: 'Person',
      component: Person
    }
  ]
})
